package com.atguigu.gmall.common.retryer;

import feign.RetryableException;
import feign.Retryer;

public class neverRetryer implements Retryer {
    /**
     * 上来直接抛异常
     * @param e
     */
    @Override
    public void continueOrPropagate(RetryableException e) {
       throw e;
    }

    @Override
    public Retryer clone() {
        return new neverRetryer();
    }
}
